package com.peng.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 字典类型表
 * @TableName t_dic_type
 */
@TableName(value ="t_dic_type")
@Data
public class TDicType implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键，自动增长，字典类型ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 字典类型代码
     */
    @TableField(value = "type_code")
    private String type_code;

    /**
     * 字典类型名称
     */
    @TableField(value = "type_name")
    private String type_name;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 一对多关联
     */
    @TableField(exist = false)
    private List<TDicValue> dicValueList;
}